package com.tkx.dxb.service.article.feign;

import com.tkx.dxb.common.base.result.R;
import com.tkx.dxb.service.article.feign.fallback.OssFileServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * Created by victor on 2021/4/9 9:16
 *
 * @description:
 */
@Service
@FeignClient(value = "service-oss",fallback = OssFileServiceFallBack.class)
public interface OssFileService {

    @DeleteMapping("/admin/oss/file/remove")
    R removeFile(@RequestBody String url);

    @DeleteMapping("/admin/oss/file/remove-files")
    R removeFiles(@RequestBody List<String> urls);

}
